<template>
  
<tr>
  <td><input type="checkbox" v-model="goodList.checked"></td>
  <td>{{name}}</td>
  <td>{{price}}</td>
  <td>
    <button @click="jian()">-</button>
{{num}}
  <button @click="add()">+</button>
  </td>
  <td>{{price*num}}</td>
  <td><button @click="shan()">删除</button></td>
</tr>
    
  
</template>

<script>
export default {
data(){
  return {
    }
},
    props:['name','price','num','checked','index','goodList'],
    methods:{
      jian(){
        this.$emit('jian',this.index)
      },
      add(){
        this.$emit('add',this.index)
      },
      shan(){
        this.$emit('shan',this.index)
      }
    },
    dianji(){
      this.$emit('')
    },
    
}
</script>

<style>

</style>